package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:06
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class TeacherCampusRelate implements java.io.Serializable {
    
    public TeacherCampusRelate() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long teacherId;	
	
	/**
	 * Attribute teacherId Be Seted Falg
	 */
	private boolean teacherIdSetted = false;
	
		/**
	 * Attribute teacherId is Null Falg
	 */
	private boolean teacherIdNull = false;
	
	   
    /**
	 * Get teacherId
	 * 
	 * @return long
	 */
	final public long getTeacherId(){
	    
				
		return teacherId;
				
	}
	
	/**
	 * Set teacherId
	 * 
	 * @param long
	 */
	final public void setTeacherId(long teacherId ){
		
				
		this.teacherId = teacherId;
				
		this.teacherIdSetted = true;
		
				
				
		this.setTeacherIdNull(false);
				
				
	}
	
	/**
	 * Get teacherId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherIdSetted(){
		return this.teacherIdSetted;
	}
	
		
	/**
	 * Set teacherId Null
	 * 
	 */
	final public void setTeacherIdNull(){
			
		this.teacherIdNull = true;
		
	}	
	
	final public void setTeacherIdNull(boolean aNullFlag){
			
		this.teacherIdNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherIdNull(){
			
		return this.teacherIdNull;
		
	}
	
    	
	   
		
		
		
	private long campusId;	
	
	/**
	 * Attribute campusId Be Seted Falg
	 */
	private boolean campusIdSetted = false;
	
		/**
	 * Attribute campusId is Null Falg
	 */
	private boolean campusIdNull = false;
	
	   
    /**
	 * Get campusId
	 * 
	 * @return long
	 */
	final public long getCampusId(){
	    
				
		return campusId;
				
	}
	
	/**
	 * Set campusId
	 * 
	 * @param long
	 */
	final public void setCampusId(long campusId ){
		
				
		this.campusId = campusId;
				
		this.campusIdSetted = true;
		
				
				
		this.setCampusIdNull(false);
				
				
	}
	
	/**
	 * Get campusId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusIdSetted(){
		return this.campusIdSetted;
	}
	
		
	/**
	 * Set campusId Null
	 * 
	 */
	final public void setCampusIdNull(){
			
		this.campusIdNull = true;
		
	}	
	
	final public void setCampusIdNull(boolean aNullFlag){
			
		this.campusIdNull = aNullFlag;
		
	}	
	
	final public boolean isCampusIdNull(){
			
		return this.campusIdNull;
		
	}
	
    	
	   
		
						
		
	private String teacherName;	
	
	/**
	 * Attribute teacherName Be Seted Falg
	 */
	private boolean teacherNameSetted = false;
	
		/**
	 * Attribute teacherName is Null Falg
	 */
	private boolean teacherNameNull = false;
	
	   
    /**
	 * Get teacherName
	 * 
	 * @return String
	 */
	final public String getTeacherName(){
	    
				
		if(isTeacherNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(teacherName);
		}
				
	}
	
	/**
	 * Set teacherName
	 * 
	 * @param String
	 */
	final public void setTeacherName(String teacherName ){
		
				
		this.teacherName = StringUtils.trim(teacherName);
				
		this.teacherNameSetted = true;
		
				
				
		this.setTeacherNameNull(this.teacherName == null);
				
				
	}
	
	/**
	 * Get teacherName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherNameSetted(){
		return this.teacherNameSetted;
	}
	
		
	/**
	 * Set teacherName Null
	 * 
	 */
	final public void setTeacherNameNull(){
			
		this.teacherNameNull = true;
		
	}	
	
	final public void setTeacherNameNull(boolean aNullFlag){
			
		this.teacherNameNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherNameNull(){
			
		return this.teacherNameNull;
		
	}
	
    	
		
								
		
	private String campusName;	
	
	/**
	 * Attribute campusName Be Seted Falg
	 */
	private boolean campusNameSetted = false;
	
		/**
	 * Attribute campusName is Null Falg
	 */
	private boolean campusNameNull = false;
	
	   
    /**
	 * Get campusName
	 * 
	 * @return String
	 */
	final public String getCampusName(){
	    
				
		if(isCampusNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusName);
		}
				
	}
	
	/**
	 * Set campusName
	 * 
	 * @param String
	 */
	final public void setCampusName(String campusName ){
		
				
		this.campusName = StringUtils.trim(campusName);
				
		this.campusNameSetted = true;
		
				
				
		this.setCampusNameNull(this.campusName == null);
				
				
	}
	
	/**
	 * Get campusName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusNameSetted(){
		return this.campusNameSetted;
	}
	
		
	/**
	 * Set campusName Null
	 * 
	 */
	final public void setCampusNameNull(){
			
		this.campusNameNull = true;
		
	}	
	
	final public void setCampusNameNull(boolean aNullFlag){
			
		this.campusNameNull = aNullFlag;
		
	}	
	
	final public boolean isCampusNameNull(){
			
		return this.campusNameNull;
		
	}
	
    	
		
				
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof TeacherCampusRelate) == false){
			return false;
		}
		TeacherCampusRelate other = (TeacherCampusRelate) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("teacherId=");
		buffer.append(this.teacherId);
		        
		buffer.append("campusId=");
		buffer.append(this.campusId);
		        
		buffer.append("teacherName=");
		buffer.append(this.teacherName);
		        
		buffer.append("campusName=");
		buffer.append(this.campusName);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}